package blazingbubble.game.command.net;

import blazingbubble.command.NetworkCommand;
import blazingbubble.game.command.CannonRotateEndCommand;
import spark.network.Sender;
import spark.network.NetworkConnection;
import moltencore.network.protocol.CannonRotateEnd;

public class NetCannonRotateEndCommand extends CannonRotateEndCommand {
	private NetworkCommand networkCommand;

	void startupNetworkingAbility(Sender sender, NetworkConnection serverConnection) {
		networkCommand = new NetworkCommand(sender, serverConnection);
	}

	@Override
	public void stopRotating() {
		CannonRotateEnd packet = new CannonRotateEnd();
		networkCommand.send(packet);
	}
}